package www.notice;

import java.util.ArrayList;
import java.util.Iterator;

public class NoticeListTest {
    public static NoticeMgr mgr = new NoticeMgr();
    
    public static void main(String[] args) {
        try{
            NoticeDTO dto = new NoticeDTO();
            
            // ��� ���ڵ� ���
            // List list = mgr.bookList();
            
            // A01 �׷츸 ���
            //List list = mgr.bookListUnique("A01");
            
            dto = (NoticeDTO) mgr.read("1");
            //Iterator iter = list.iterator();

            //while(iter.hasNext()){
                //dto = (MemberDTO)iter.next();
                System.out.println(dto.getNoticeno());
                System.out.println(dto.getNickname());
                System.out.println(dto.getTitle());
                System.out.println(dto.getContents());
                System.out.println(dto.getProfilephoto());
                System.out.println(dto.getNoticedate());
                // System.out.println(dto.getPrice());
                // System.out.println(dto.getImagefile());
                System.out.println("-------------------------");
        //    }        
        }catch(Exception e){
            System.out.println(e.toString());
        }
    }
    
}




    
